/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package boundless.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;
/**
 *
 * @author hendrikdekock
 */
@Embeddable
public class PlayersandpositionsbyteamPK {
 
    @Basic(optional = false)
    @NotNull
    @Column(name = "ID")
    private int playerid;
    @Basic(optional = false)
    @NotNull
    @Column(name = "TEAMID")
    private int teamid;
    
    
    public PlayersandpositionsbyteamPK() {
        
    }
    
   public PlayersandpositionsbyteamPK(int playerid, int teamid) {
        this.playerid = playerid;
        this.teamid = teamid;
    }

    
    public int getId() {
        return playerid;
    }

    public void setId(int id) {
        this.playerid = id;
    }

        public int getTeamid() {
        return teamid;
    }

    public void setTeamid(int teamid) {
        this.teamid = teamid;
    }
    
}
